home *** CD-ROM | disk | FTP | other *** search
-
-
-
- TTTTAAAAPPPPEEEEIIIIOOOO((((3333FFFF)))) TTTTAAAAPPPPEEEEIIIIOOOO((((3333FFFF))))
-
-
-
- NNNNAAAAMMMMEEEE
- tapeio: topen, tclose, tread, twrite, trewin, tskipf, tstate - FORTRAN
- tape device specific I/O routines
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- iiiinnnntttteeeeggggeeeerrrr ttttooooppppeeeennnn,,,, ttttcccclllloooosssseeee,,,, ttttrrrreeeeaaaadddd,,,, ttttwwwwrrrriiiitttteeee,,,, ttttrrrreeeewwwwiiiinnnn,,,, ttttsssskkkkiiiippppffff,,,, ttttssssttttaaaatttteeee
- iiiinnnntttteeeeggggeeeerrrr ttttlllluuuu
- cccchhhhaaaarrrraaaacccctttteeeerrrr****((((****)))) bbbbuuuuffffffffeeeerrrr
- cccchhhhaaaarrrraaaacccctttteeeerrrr****((((****)))) ddddeeeevvvvnnnnaaaammmm
- llllooooggggiiiiccccaaaallll llllaaaabbbblllleeeedddd
-
- iiiieeeerrrrrrrroooorrrr ==== ttttooooppppeeeennnn((((ttttlllluuuu,,,, ddddeeeevvvvnnnnaaaammmm,,,, llllaaaabbbblllleeeedddd))))
- iiiieeeerrrrrrrroooorrrr ==== ttttcccclllloooosssseeee((((ttttlllluuuu))))
- nnnnbbbbyyyytttteeeessss ==== ttttrrrreeeeaaaadddd((((ttttlllluuuu,,,, bbbbuuuuffffffffeeeerrrr))))
- nnnnbbbbyyyytttteeeessss ==== ttttwwwwrrrriiiitttteeee((((ttttlllluuuu,,,, bbbbuuuuffffffffeeeerrrr))))
- iiiieeeerrrrrrrroooorrrr ==== ttttrrrreeeewwwwiiiinnnn ((((ttttlllluuuu))))
- iiiieeeerrrrrrrroooorrrr ==== ttttsssskkkkiiiippppffff ((((ttttlllluuuu,,,, nnnnffffiiiilllleeeessss,,,, nnnnrrrreeeeccccssss))))
-
- iiiinnnntttteeeeggggeeeerrrr ffffiiiilllleeeennnnoooo,,,, rrrreeeeccccnnnnoooo,,,, eeeerrrrrrrr,,,, eeeeooooffff,,,, eeeeooootttt,,,, ttttccccssssrrrr
- iiiieeeerrrrrrrroooorrrr ==== ttttssssttttaaaatttteeee ((((ttttlllluuuu,,,, ffffiiiilllleeeennnnoooo,,,, rrrreeeeccccnnnnoooo,,,, eeeerrrrrrrr,,,, eeeeooooffff,,,, eeeeooootttt,,,, ttttccccssssrrrr))))
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _t_a_p_e_i_o is the general name for the set of I/O functions that operate on a
- tape device. _t_o_p_e_n, _t_c_l_o_s_e, _t_r_e_w_i_n, _t_s_k_i_p_f, and _t_s_t_a_t_e return -1 on
- error, 0 if successful. _t_r_e_a_d and _t_w_r_i_t_e return -1 on error, the number
- of bytes read (or written) on success.
-
- _t_o_p_e_n opens a tape unit for I/O. _d_e_v_n_a_m is the name of the tape device.
- _l_a_b_l_e_d should be .true. if the tape is labeled. _t_l_u is set to the
- logical unit number of the tape device used for subsequent calls.
-
- _t_c_l_o_s_e closes a tape unit previously opened by _t_o_p_e_n.
-
- _t_r_e_a_d reads from the tape device into _b_u_f_f_e_r. _n_b_y_t_e_s is set to the
- number of bytes actually read, or -1 for an error. Zero (0) maybe
- returned in an end-of-file or end-of-tape situation.
-
- _t_w_r_i_t_e writes to the tape device from _b_u_f_f_e_r. _n_b_y_t_e_s is set to the
- number of bytes actually written, or -1 for an error.
-
- _t_r_e_w_i_n rewinds the tape device.
-
- _t_s_k_i_p_f skips forward _n_f_i_l_e_s files and _n_r_e_c_s records.
-
- _t_s_t_a_t_e returns the status of the tape channel. Upon successful
- completion, 0 is returned and the following values will be set:
-
- fileno
- current file number
- recno
- current record number
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- TTTTAAAAPPPPEEEEIIIIOOOO((((3333FFFF)))) TTTTAAAAPPPPEEEEIIIIOOOO((((3333FFFF))))
-
-
-
- err 1 if there are errors, 0 if there are no errors
- eof 1 if it is at end-of-file, 0 if not
- eot 1 if it is at end-of-tape, 0 if not
- tcsr the value of the drive status register, see mt_dsreg in
- /usr/include/sys/mtio.h
-
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- mtio(7)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-